*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section

    " 数据定义
    TYPES: BEGIN OF t_user_fields,
             fieldname TYPE string,
             value     TYPE string,
           END OF t_user_fields.

    TYPES: tt_user_fields TYPE STANDARD TABLE OF t_user_fields WITH DEFAULT KEY.

    TYPES: BEGIN OF t_child_data,
             itemcode  TYPE string,
             itemname  TYPE string,
             uom        TYPE string,
             quantity   TYPE i,
             userfields TYPE tt_user_fields,
           END OF t_child_data.
    TYPES: tt_child_data TYPE STANDARD TABLE OF t_child_data WITH DEFAULT KEY.

    TYPES: BEGIN OF ty_json,
             productcode TYPE string,
             productname TYPE string,
             mode        TYPE string,
             userfields  TYPE tt_user_fields,
             childdata   TYPE tt_child_data,
           END OF ty_json.

*           {
*  "state": 0,
*  "ErrorMsg": "新增BOM数据成功：TEST001",
*  "data": "TEST001"
*}

    TYPES:BEGIN OF ty_msg,
            state    TYPE string,
            ErrorMsg TYPE string,
            data     TYPE string,
          END OF ty_msg.
